package com.xingceng.stock.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiceng.stock.entity.StockMarketIndexInfo;
import com.xiceng.stock.entity.StockMarketLogPrice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ForkJoinPool;

/**
* @author ZYZ
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @createDate 2025-11-07 14:39:26
* @Entity com.xingceng.stock.entity.StockMarketIndexInfo
*/
@Mapper
public interface StockMarketIndexInfoMapper extends BaseMapper<StockMarketIndexInfo> {
    /**
     * 批量插入股票大盘数据
     * @param infos
     */
    int insertBatch(List<StockMarketIndexInfo> infos);

    List<StockMarketIndexInfo> selectByIdsAndDateTime(@Param("ids") List<String> ids,@Param("last") LocalDateTime last);

    List<Map> stockTradeVolCount(@Param("marketIds") List<String> marketIds, @Param("openDate") Date openDate , @Param("stockDateTime") Date tStr);
}




